package com.huike.clues.mapper;

import com.huike.common.annotation.AutoFill;
import com.huike.common.core.domain.entity.SysDictType;
import com.huike.common.enums.DaoOperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author EthanRuins
 * @date 2023/7/13
 * @apiNote
 */
@Mapper
public interface SysDictTypeMapper {

    @AutoFill(DaoOperationType.INSERT)
    int insert(SysDictType sysDictType);

    @AutoFill(DaoOperationType.UPDATE)
    int update(SysDictType sysDictType);

    int deleteById(Long id);

    int deleteByIds(Long[] ids);

    SysDictType getById(Long dictId);

    SysDictType checkDictTypeUnique(String dictType);

    List<SysDictType> getDictTypeAll();

    List<SysDictType> getByType(String dictType);

    List<SysDictType> getDictTypeList(SysDictType sysDictType);
}
